﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Role_Manage.aspx.cs" Inherits="SYS_POPEDOM_Role_Manage" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>

    <script type="text/javascript" src="../JavaScript/Common.js"></script>
    <link href="../css/PageStyle.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager ID="ResourceManager1" runat="server" AjaxViewStateMode="Enabled" />
    <ext:Store ID="Store1" runat="server" AutoLoad="true" OnRefreshData="OnStoreRefreshData">
        <Proxy><ext:PageProxy></ext:PageProxy></Proxy>
        <Reader>
            <ext:JsonReader IDProperty="ROLE_ID" >
                <Fields>
                    <ext:RecordField Name="ROLE_ID" />
                    <ext:RecordField Name="ROLE_NAME" />
                    <ext:RecordField Name="CREATOR_NAME" />
                    <ext:RecordField Name="DEPT_NAME" />
                    <ext:RecordField Name="NOTES" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:Viewport ID="Viewport1" runat="server">
        <Items>
            <ext:BorderLayout ID="BorderLayout1" runat="server">
                <Center>
                    <ext:GridPanel ID="GridPanel1" runat="server" StoreID="Store1" Border="false" AutoWidth="true"
                        AutoExpandColumn="ROLE_NAME">
                        <ColumnModel runat="server">
                            <Columns>
                                <ext:RowNumbererColumn Header="序号" Width="35" />
                                <ext:Column ColumnID="ROLE_ID" Header="角色ID" Hidden="true" DataIndex="ROLE_ID">
                                </ext:Column>
                                <ext:Column Header="角色名称" Sortable="true" DataIndex="ROLE_NAME">
                                </ext:Column>
                                <ext:Column Header="创建者" Sortable="true" DataIndex="CREATOR_NAME">
                                </ext:Column>
                                <ext:Column Header="创建部门" Sortable="true" DataIndex="DEPT_NAME">
                                </ext:Column>
                                <ext:Column Header="备注" DataIndex="NOTES">
                                </ext:Column>
                            </Columns>
                        </ColumnModel>
                        <SelectionModel>
                            <ext:RowSelectionModel ID="RowSelectionModel1" runat="server">
                            </ext:RowSelectionModel>
                        </SelectionModel>
                        <LoadMask ShowMask="true" Msg="加载中..." />
                        <TopBar>
                            <ext:Toolbar runat="server">
                                <Items>
                                    <ext:Button ID="extBtn_Refresh" runat="server" Text="刷新" Icon="ArrowRefresh">
                                        <DirectEvents>
                                            <Click OnEvent="extBtn_Refresh_Click">
                                                <EventMask ShowMask="true" Target="CustomTarget" CustomTarget="#{GridPanel1}" />
                                            </Click>
                                        </DirectEvents>
                                    </ext:Button>
                                    <ext:Button ID="extBtn_Add" runat="server" Text="新增" Icon="Add">
                                    </ext:Button>
                                    <ext:Button ID="extBtn_Edit" runat="server" Text="修改" Icon="GroupEdit">
                                    </ext:Button>
                                    <ext:Button ID="extBtn_Delete" runat="server" Text="删除" Icon="Delete">
                                        <DirectEvents>
                                            <Click OnEvent="extBtn_Delete_Click">
                                                <EventMask ShowMask="true" Target="CustomTarget" CustomTarget="#{GridPanel1}" />
                                            </Click>
                                        </DirectEvents>
                                    </ext:Button>
                                </Items>
                            </ext:Toolbar>
                        </TopBar>
                    </ext:GridPanel>
                </Center>
            </ext:BorderLayout>
        </Items>
    </ext:Viewport>
    </form>
</body>
</html>
